package com.service.impl;

import com.dao.UserDao;
import com.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("userService")
    public class UserServiceImpl implements UserService {
    @Autowired
        UserDao userDao;
        @Override
        public boolean login(String name, String password) {
            return userDao.login(name, password);
        }
    }
